package com.fast.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户信息表(User)表实体类
 *
 * @author hjw
 * @since 2021-12-02 23:40:14
 */
@Data
@TableName("sys_user")
@ApiModel(value="User",description="用户信息表实体类")
public class User extends Model<User> implements Serializable {

                        
    @TableId(type=IdType.ID_WORKER)
    @ApiModelProperty(name = "userId", value = "用户ID")
    private Long userId;
                        
    @ApiModelProperty(name = "deptId", value = "部门ID")
    private Long deptId;
                        
    @ApiModelProperty(name = "userName", value = "用户账号")
    private String userName;
                        
    @ApiModelProperty(name = "nickName", value = "用户昵称")
    private String nickName;
                        
    @ApiModelProperty(name = "userType", value = "用户类型（00系统用户）")
    private String userType;
                        
    @ApiModelProperty(name = "email", value = "用户邮箱")
    private String email;
                        
    @ApiModelProperty(name = "phonenumber", value = "手机号码")
    private String phonenumber;
                        
    @ApiModelProperty(name = "sex", value = "用户性别（0男 1女 2未知）")
    private String sex;
                        
    @ApiModelProperty(name = "avatar", value = "头像地址")
    private String avatar;
                        
    @ApiModelProperty(name = "password", value = "密码")
    private String password;
                        
    @ApiModelProperty(name = "status", value = "帐号状态（0正常 1停用）")
    private String status;
                        
    @ApiModelProperty(name = "delFlag", value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
                        
    @ApiModelProperty(name = "loginIp", value = "最后登录IP")
    private String loginIp;
                        
    @ApiModelProperty(name = "loginDate", value = "最后登录时间")
    private LocalDateTime loginDate;
                        
    @ApiModelProperty(name = "createBy", value = "创建者",hidden=true)
    private String createBy;
                        
    @ApiModelProperty(name = "createTime", value = "创建时间",hidden=true)
    private LocalDateTime createTime;
                        
    @ApiModelProperty(name = "updateBy", value = "更新者",hidden=true)
    private String updateBy;
                        
    @ApiModelProperty(name = "updateTime", value = "更新时间",hidden=true)
    private LocalDateTime updateTime;
                        
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
    
    private static final long serialVersionUID = -48393157632720533L;
}